package com.service.impl;

import com.bean.Goods;
import com.dao.GoodsMapper;
import com.service.GoodsService;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author Samsara
* @description 针对表【goods】的数据库操作Service实现
* @createDate 2023-01-18 03:30:40
*/
@Service
public class GoodsServiceImpl implements GoodsService {
    
    @Resource
    private GoodsMapper goodsMapper;

    @Override
    public Integer insertBatch(List<Goods> goodsList) {
        return goodsMapper.insertBatch(goodsList);
    }

    @Override
    public Integer updateBatch(List<Goods> goodsList) {
        return goodsMapper.updateBatch(goodsList);
    }

    @Override
    public Integer deleteBatch(List<Goods> goodsList) {
        return goodsMapper.deleteBatch(goodsList);
    }

    @Override
    public List<Goods> selectGoodsList(List<Goods> goodsList,Integer start,Integer end) {
        return goodsMapper.selectGoodsList(goodsList,start,end);
    }

    @Override
    public List<Goods> selectGoodsListAndOrderList(List<Goods> goodsList,Integer start,Integer end) {
        return goodsMapper.selectGoodsListAndOrderList(goodsList,start,end);
    }

    @Override
    public List<Goods> selectGoodsListAndSeckillList(List<Goods> goodsList, Integer start, Integer end) {
        return goodsMapper.selectGoodsListAndSeckillList(goodsList,start,end);
    }
}
